package cn.yeziji.forum.dao.iquery;

import cn.yeziji.forum.wrapper.ForumSpecialColumnQuery;

/**
 * 标签查询构造器
 *
 * @author gzkemays
 * @date 2022/5/25
 */
public class SpecialQuery {
  public static ForumSpecialColumnQuery getSpecialByNameAndUsername(String name, String username) {
    return new ForumSpecialColumnQuery()
        .selectAll()
        .where
        .name()
        .eq(name)
        .and
        .username()
        .eq(username)
        .end();
  }

  public static ForumSpecialColumnQuery getSpecialsByUsername(String username) {
    return new ForumSpecialColumnQuery().selectAll().where.username().eq(username).end();
  }
}
